<%@ page contentType="text/html;charset=UTF-8"%>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>企业页面</title>
    <jsp:include page="${pageContext.request.contextPath}/common/css.jsp" />
</head>
<body>
    <div class="container">
        <div class="row">
            <ol class="breadcrumb">
                <li><a href="#">主页</a></li>
                <li><a href="#">企业列表</a></li>
                <li><a class="active">新增企业</a></li>
            </ol>
        </div>
        <div class="row">
            <form class="form-horizontal" action="${pageContext.request.contextPath}/company/add" method="post"
                  enctype="multipart/form-data">
                <div class="form-group">
                    <label for="name" class="col-sm-2 control-label">企业名称</label>
                    <div class="col-sm-10">
                        <input type="text" name="name" class="form-control" id="name" placeholder="企业名称">
                    </div>
                </div>
                <div class="form-group">
                    <label for="logo" class="col-sm-2 control-label">企业LOGO</label>
                    <div class="col-sm-10">
                        <input type="file" name="logo" class="form-control" id="logo">
                    </div>
                </div>
                <div class="form-group">
                    <label for="city" class="col-sm-2 control-label">所在城市</label>
                    <div class="col-sm-10">
                        <input type="text" name="city" class="form-control" id="city" placeholder="所在城市">
                    </div>
                </div>
                <div class="form-group">
                    <label for="sourceId" class="col-sm-2 control-label">信息来源</label>
                    <div class="col-sm-10">
                        <%--<input type="text" name="source" class="form-control" id="source" placeholder="信息来源">--%>
                        <select id="sourceId" name="sourceId">
                            <option value="1">网络</option>
                            <option value="2">QQ/微信</option>
                            <option value="3">电话</option>
                            <option value="4">其它</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label for="information" class="col-sm-2 control-label">详细信息</label>
                    <div class="col-sm-10">
                        <textarea name="information" class="form-control" id="information" rows="3"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default">添加</button>
                    </div>
                </div>
            </form>
        </div>

    </div>
    <jsp:include page="${pageContext.request.contextPath}/common/js.jsp"/>
    <script charset="utf-8" src="${pageContext.request.contextPath}/kindeditor/kindeditor-all-min.js"></script>
    <script charset="utf-8" src="${pageContext.request.contextPath}/kindeditor/lang/zh-CN.js"></script>
    <script>
        KindEditor.ready(function(K) {
            window.editor = K.create('#information');
        });
    </script>
</body>
</html>
